package demo3;

public class test {
    public static void main(String[] args) {
        Animal animal=new Dog("qiqi",1);
        Animal animal1=new Cat("ww",2);
        animal.eat();
        animal1.eat();
    }
}
